package br.com.monitor.gui;
import br.com.monitor.gui.FormularioInicial;

import java.awt.Dimension;

import javax.swing.JFrame;

public class FormularioPrincipal {
	
	// declaracao dos objetos pertencentes a interface
	private JFrame telaPrincipal;
	
	public static void main(String[] args) {
		FormularioPrincipal monitor = new FormularioPrincipal();
		monitor.iniciaComponentes();
	}
	
	private void iniciaComponentes() {
		// iniciando e configurando o JFrame Principal
		telaPrincipal = new JFrame();
		telaPrincipal.setSize(800, 600);
		telaPrincipal.setResizable(true);
		telaPrincipal.setMaximumSize(new Dimension(300, 200));
		telaPrincipal.setLocation(50, 50);
		telaPrincipal.add(new FormularioInicial());
		telaPrincipal.setVisible(true);
		telaPrincipal.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		// --------------------------------------------------------- //
	}

}